package com.xh.chat.netty.event;

import com.xh.chat.netty.annotation.EventProcess;
import com.xh.chat.netty.dto.DataContentDTO;
import com.xh.chat.netty.enums.MsgActionEnum;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author wen
 * @apiNote ConnectEventHandler
 * @since 2021-08-09
 */
@Slf4j
@Service
@EventProcess(MsgActionEnum.KEEPALIVE)
public class KeepaliveEventHandler implements EventHandler {

    @Override
    public void handle(DataContentDTO dataContentDTO, Channel currentChannel) {
        //  2.4  心跳类型的消息
        log.info("收到来自channel为[{}]的心跳包...", currentChannel);
    }

}
